<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: Posture Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00178.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">Posture Class Reference<div class="ingroups"><a class="el" href="a00513.html">mobility - modules handling the mobility of the hosts</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Posture" -->
<p>to store the specification of a posture on the MoBAN mobility model.  
 <a href="a00178.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00369_source.html">Posture.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for Posture:</div>
<div class="dyncontent">
<div class="center"><img src="a00944.png" border="0" usemap="#Posture_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a00945.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2220f047525bfaca36d875fe57aef363"></a><!-- doxytag: member="Posture::Posture" ref="a2220f047525bfaca36d875fe57aef363" args="(unsigned int, unsigned int)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a2220f047525bfaca36d875fe57aef363">Posture</a> (unsigned int, unsigned int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a posture object with the given ID and number of nodes, respectively. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a54ea07f82d8f757b9c1514f9ccbc6d6a"></a><!-- doxytag: member="Posture::getNumNodes" ref="a54ea07f82d8f757b9c1514f9ccbc6d6a" args="() const " -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a54ea07f82d8f757b9c1514f9ccbc6d6a">getNumNodes</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the number of nodes existing in the WBAN. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a12591a1dc501c32eecd9c422d322dcea"></a><!-- doxytag: member="Posture::setPostureName" ref="a12591a1dc501c32eecd9c422d322dcea" args="(char *)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a12591a1dc501c32eecd9c422d322dcea">setPostureName</a> (char *)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the given name for the posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8517a4c793e02f5f4cbf4cd589c2bf39"></a><!-- doxytag: member="Posture::setPostureSpeed" ref="a8517a4c793e02f5f4cbf4cd589c2bf39" args="(double, double)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a8517a4c793e02f5f4cbf4cd589c2bf39">setPostureSpeed</a> (double, double)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the minimum and maximum value for the speed range of the whole WBAN (global movement) in this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a38d971ecc896965e6f70564598b53649"></a><!-- doxytag: member="Posture::setRadius" ref="a38d971ecc896965e6f70564598b53649" args="(unsigned int, double)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a38d971ecc896965e6f70564598b53649">setRadius</a> (unsigned int, double)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the radius of the sphere for movement of a singular node in this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a1ae808066c4ffcdf73a7bc683cf456"></a><!-- doxytag: member="Posture::setSpeed" ref="a9a1ae808066c4ffcdf73a7bc683cf456" args="(unsigned int, double)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a9a1ae808066c4ffcdf73a7bc683cf456">setSpeed</a> (unsigned int, double)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the velocity for movement of a singular node in this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac6e3fd122b7b79699a4b30ebe558b087"></a><!-- doxytag: member="Posture::setPs" ref="ac6e3fd122b7b79699a4b30ebe558b087" args="(unsigned int, Coord)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ac6e3fd122b7b79699a4b30ebe558b087">setPs</a> (unsigned int, <a class="el" href="a00065.html">Coord</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the relative position of a node in this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4fef8b2a4301bbb7dd23ad64ccc04570"></a><!-- doxytag: member="Posture::setAlphaMean" ref="a4fef8b2a4301bbb7dd23ad64ccc04570" args="(unsigned int, unsigned int, double)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a4fef8b2a4301bbb7dd23ad64ccc04570">setAlphaMean</a> (unsigned int, unsigned int, double)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the mean value of a normal distribution for path lost coefficient of wave propagation between two nodes in this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a01d63cc271da802b847daa39300b363f"></a><!-- doxytag: member="Posture::setAlphaSD" ref="a01d63cc271da802b847daa39300b363f" args="(unsigned int, unsigned int, double)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a01d63cc271da802b847daa39300b363f">setAlphaSD</a> (unsigned int, unsigned int, double)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the standard deviation of a normal distribution for path lost coefficient of wave propagation between two nodes in this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7057d6de18f8fd8d646e0d370ab8c2a5"></a><!-- doxytag: member="Posture::isMobile" ref="a7057d6de18f8fd8d646e0d370ab8c2a5" args="()" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a7057d6de18f8fd8d646e0d370ab8c2a5">isMobile</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if this posture is mobile by checking the maximum possible speed. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a217bc7334d61b9441c06affd81798445"></a><!-- doxytag: member="Posture::getPostureID" ref="a217bc7334d61b9441c06affd81798445" args="()" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a217bc7334d61b9441c06affd81798445">getPostureID</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the unique Id (index) of this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a40dc6d7007b14e779420da389e927aec"></a><!-- doxytag: member="Posture::getPostureName" ref="a40dc6d7007b14e779420da389e927aec" args="()" -->
char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a40dc6d7007b14e779420da389e927aec">getPostureName</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns posture name. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a99d879a60f411811fad6949c3b7811a3"></a><!-- doxytag: member="Posture::getMaxSpeed" ref="a99d879a60f411811fad6949c3b7811a3" args="()" -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a99d879a60f411811fad6949c3b7811a3">getMaxSpeed</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns maximum value of the speed range of this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac805f463e2f12178b128f741cfc2f8ec"></a><!-- doxytag: member="Posture::getMinSpeed" ref="ac805f463e2f12178b128f741cfc2f8ec" args="()" -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ac805f463e2f12178b128f741cfc2f8ec">getMinSpeed</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns minimum value of the speed range of this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3b0ae5a46b6e562838f968cd1bb06b91"></a><!-- doxytag: member="Posture::getRadius" ref="a3b0ae5a46b6e562838f968cd1bb06b91" args="(unsigned int)" -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a3b0ae5a46b6e562838f968cd1bb06b91">getRadius</a> (unsigned int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the singular movement radius of a node in this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad29284231df7d01bf47f1aaaad192103"></a><!-- doxytag: member="Posture::getSpeed" ref="ad29284231df7d01bf47f1aaaad192103" args="(unsigned int)" -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ad29284231df7d01bf47f1aaaad192103">getSpeed</a> (unsigned int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the singular movement speed of a node in this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6cce5bfb2a17e71e346d7fd699139820"></a><!-- doxytag: member="Posture::getPs" ref="a6cce5bfb2a17e71e346d7fd699139820" args="(unsigned int)" -->
<a class="el" href="a00065.html">Coord</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a6cce5bfb2a17e71e346d7fd699139820">getPs</a> (unsigned int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the relative position of a node in this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4ebf4ddceab8eeaf1a2f802e07750540"></a><!-- doxytag: member="Posture::getAlphaMean" ref="a4ebf4ddceab8eeaf1a2f802e07750540" args="(unsigned int, unsigned int)" -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a4ebf4ddceab8eeaf1a2f802e07750540">getAlphaMean</a> (unsigned int, unsigned int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the mean value of a normal distribution for path lost coefficient of wave propagation between two nodes in this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8e474d473692d0000790db17918e8a2b"></a><!-- doxytag: member="Posture::getAlphaSD" ref="a8e474d473692d0000790db17918e8a2b" args="(unsigned int, unsigned int)" -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a8e474d473692d0000790db17918e8a2b">getAlphaSD</a> (unsigned int, unsigned int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the standard deviation of a normal distribution for path lost coefficient of wave propagation between two nodes in this posture. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a26f00ed7a91cb2212501f96b3dfff654"></a><!-- doxytag: member="Posture::numNodes" ref="a26f00ed7a91cb2212501f96b3dfff654" args="" -->
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a26f00ed7a91cb2212501f96b3dfff654">numNodes</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of nodes existing in the WBAN. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0c4a1ffae7770c12c0cdf627e8874bff"></a><!-- doxytag: member="Posture::postureID" ref="a0c4a1ffae7770c12c0cdf627e8874bff" args="" -->
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a0c4a1ffae7770c12c0cdf627e8874bff">postureID</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The unique ID of the posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0766a3ff345ed3c738646a0b72bde74a"></a><!-- doxytag: member="Posture::nodePs" ref="a0766a3ff345ed3c738646a0b72bde74a" args="" -->
<a class="el" href="a00065.html">Coord</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a0766a3ff345ed3c738646a0b72bde74a">nodePs</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The relative reference position of each node in this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a411eac6d222e4c69eaeb3ae0b914ce12"></a><!-- doxytag: member="Posture::posture_name" ref="a411eac6d222e4c69eaeb3ae0b914ce12" args="[50]" -->
char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a411eac6d222e4c69eaeb3ae0b914ce12">posture_name</a> [50]</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A given name to the posture like walking, sitting. It might be used for showing the current posture in the graphical interface during the simulation run. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a06c51a1bf4c89b12a3c317f6ae3fc044"></a><!-- doxytag: member="Posture::alphaMean" ref="a06c51a1bf4c89b12a3c317f6ae3fc044" args="" -->
double **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a06c51a1bf4c89b12a3c317f6ae3fc044">alphaMean</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Mean value of the normal distribution for the path lost coefficient (alpha) for any pair of nodes (numNodes by numNodes matrix) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a88871af13632952bcfc8996c5eef3906"></a><!-- doxytag: member="Posture::alphaSD" ref="a88871af13632952bcfc8996c5eef3906" args="" -->
double **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a88871af13632952bcfc8996c5eef3906">alphaSD</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Mean value of the normal distribution for the path lost coefficient (alpha) for any pair of nodes (numNodes by numNodes matrix) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afb21a48b225752f643ce8494393a5d1c"></a><!-- doxytag: member="Posture::nodeRadius" ref="afb21a48b225752f643ce8494393a5d1c" args="" -->
double *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#afb21a48b225752f643ce8494393a5d1c">nodeRadius</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Radious of the sphere around each node for individual mobility. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeb6512db7e7ac1718971b2e777754935"></a><!-- doxytag: member="Posture::nodeSpeed" ref="aeb6512db7e7ac1718971b2e777754935" args="" -->
double *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#aeb6512db7e7ac1718971b2e777754935">nodeSpeed</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Movement speed of the node for individual mobility. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1d16f0f0138a5a57c72519d1a3914e69"></a><!-- doxytag: member="Posture::maxSpeed" ref="a1d16f0f0138a5a57c72519d1a3914e69" args="" -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a1d16f0f0138a5a57c72519d1a3914e69">maxSpeed</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum value of the speed range for the global movement in this posture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a259a565c328c6ca2c31ae02f7d4ba933"></a><!-- doxytag: member="Posture::minSpeed" ref="a259a565c328c6ca2c31ae02f7d4ba933" args="" -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#a259a565c328c6ca2c31ae02f7d4ba933">minSpeed</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Minimum value of the speed range for the global movement in this posture. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>to store the specification of a posture on the MoBAN mobility model. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>Majid Nabi </dd></dl>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/Projects/MiXiM/extsrc/mixim/src/inet_stub/mobility/models/<a class="el" href="a00369_source.html">Posture.h</a></li>
<li>D:/Projects/MiXiM/extsrc/mixim/src/inet_stub/mobility/models/Posture.cc</li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00178.html">Posture</a>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:33 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
